﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Form.aspx.cs" Inherits="AxialWeb.Form" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Simple Form</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    	<asp:Table ID="Table1" runat="server">
			<asp:TableRow runat="server">
				<asp:TableCell runat="server">Name:</asp:TableCell>
				<asp:TableCell runat="server"><asp:TextBox runat="server" ID="txtName" /></asp:TableCell>
				<asp:TableCell runat="server"><asp:Label runat="server" ID="lblNameError" ForeColor="Red" style="display:none" /></asp:TableCell>
			</asp:TableRow>
			<asp:TableRow runat="server">
				<asp:TableCell runat="server">Favorite Color:</asp:TableCell>
				<asp:TableCell runat="server"><asp:TextBox runat="server" ID="txtColor" /></asp:TableCell>
				<asp:TableCell runat="server"><asp:Label runat="server" ID="lblColorError" ForeColor="Red" style="display:none" /></asp:TableCell>
			</asp:TableRow>
			<asp:TableRow>
				<asp:TableCell runat="server">Two level dropdown:</asp:TableCell>
				<asp:TableCell runat="server">
					<asp:DropDownList runat="server" ID="ddlLevel1" onchange="FillDropDown()">
						<asp:ListItem Text="1" Value="1" />
						<asp:ListItem Text="2" Value="2" />
					</asp:DropDownList>
					<asp:DropDownList runat="server" ID="ddlLevel2">
						<asp:ListItem Text="10" Value="10" />
						<asp:ListItem Text="11" Value="11" />
						<asp:ListItem Text="12" Value="12" />
					</asp:DropDownList>
				</asp:TableCell>
			</asp:TableRow>
			<asp:TableRow runat="server">
				<asp:TableCell runat="server" ColumnSpan="2" HorizontalAlign="Center">
					<asp:Button runat="server" ID="btnSave" Text="Save" OnClientClick="return JSValidate() != 0;" />
				</asp:TableCell>
			</asp:TableRow>
		</asp:Table>

		<axial:WFScript runat="server" ID="wfsDropDowns" MethodName="FillDropDown" />
		<axial:WFValidator runat="server" ID="wfsValidate" MethodName="JSValidate" />
    </div>
    </form>
</body>
</html>
